import request from '@/utils/request'

/**
 * myPledgeProfitList
 * @param {*} data
 * @returns
 */
export function myPledgeProfitList(data) {
  return request({
    url: '/api/myPledgeProfitList',
    method: 'post',
    data
  })
}

/**
 * queryMyPledgeDetail
 * @param {*} data
 * @returns
 */
export function queryMyPledgeDetail(data) {
  return request({
    url: '/api/queryMyPledgeDetail',
    method: 'post',
    data
  })
}

/**
 * queryNodeList
 * @param {Object} data
 */
export function queryNodeList(data) {
  return request({
    url: '/api/node/queryNodeList',
    method: 'post',
    data
  })
}

/**
 * toPledge
 * @param {Object} data
 */
export function toPledge(data) {
  return request({
    url: '/api/node/toPledge',
    method: 'post',
    data
  })
}

/**
 * pledge
 * @param {Object} data
 */
export function pledge(data) {
  return request({
    url: '/api/node/pledge',
    method: 'post',
    data
  })
}


